from any.a4 import o
import any.a5


def second():
    print(o.__dict__)
    o.b = 11
    print(o.__dict__)
    any.a5.first()


# second()
queue = [2, 4, 5, 7, 10]


def gen88(a):
    global queue
    queue.append(11)
    print(queue)
    for i in queue:
        yield a * i


def client():
    s = gen88(100)
    # queue
    queue.append(34)
    print('ssss', queue)
    for i in s:
        print(i)
        if i == 400:
            queue.append(22)


def minus(it):
    result = []
    for i in it:
        print(f'{i} - 6 = {i - 6}')
        result.append(i - 6)
    return result


def multi2(content):
    templist = []
    for i in content:
        print(f'{i} +7 ={i + 7}')

        templist.append(i + 7)
    return templist


def multi(content):
    for i in content:
        print(f'{i} +7 ={i + 7}')
        if i!=100:
            print("add 100 to queue")
            content.append(100)
        yield i+7
def client1():
    content = [1, 21, 44, 554, 65, 23, 21]
    print(f'content init {content}')
    templist = multi(content)
    print(f'temp result is {templist}')
    result = minus(templist)
    print(f'final result is {result}')

import requests
# :todo


if __name__ == '__main__':
    pass
